<div class="container" id="app">




    <div class="row">
        <div class="col-md-12">    
            <ol class="breadcrumb">
                <li>
                    <a href="<?=base_url('main')?>">首页</a>
                </li>
                <li><a href="<?=base_url('main/catagory/') . $catagory["catagory_id"]?>"><?=$catagory["catagory_title"]?></a></li>
                <li class="active">Edit Catagory</li>
            </ol>
        </div>
    </div>




<form action="<?=base_url('main/catagory_update')?>" method="POST">

    <legend>Catagory</legend>


    <input type="hidden" name="catagory_id"  value="<?=$catagory['catagory_id']?>">

    <div class="form-group">
        <label for="catagory_date">Date</label>
        <input type="date" class="form-control" name="catagory_date" id="catagory_date" value="<?=$catagory['catagory_date']?>">
    </div>


    <div class="form-group">
        <label for="catagory_title">Title</label>
        <input type="text" class="form-control" name="catagory_title" id="catagory_title" value="<?=$catagory['catagory_title']?>">
    </div>


    <div class="form-group">
        <p><label for="catagory_status">Status</label></p>
            <label for="status_1">
                <input type="radio" id="status_1" name="catagory_status" value="1" <?php if($catagory['catagory_status'] == '1'){echo 'checked';} ;?> >&nbsp;正在进行&nbsp;&nbsp;
            </label>

            <label for="status_2">
                <input type="radio" id="status_2" name="catagory_status" value="2" <?php if($catagory['catagory_status'] == '2'){echo 'checked';} ;?> >&nbsp;正在等待&nbsp;&nbsp;
            </label>

            <label for="status_3">
                <input type="radio" id="status_3" name="catagory_status" value="3" <?php if($catagory['catagory_status'] == '3'){echo 'checked';} ;?> >&nbsp;长期任务&nbsp;&nbsp;
            </label>

            <label for="status_4">
                <input type="radio" id="status_4" name="catagory_status" value="0" <?php if($catagory['catagory_status'] == '0'){echo 'checked';} ;?> >&nbsp;已经完成&nbsp;&nbsp;
            </label>
    </div>


    <div class="form-group">
        <label for="catagory_task">Task</label>
        <textarea class="form-control" name="catagory_task" id="catagory_task" rows="5"><?=$catagory['catagory_task']?></textarea>
    </div>


    <div class="form-group">
        <label for="catagory_note">Note</label>
        <textarea class="form-control" name="catagory_note" id="catagory_note" rows="15"><?=$catagory['catagory_note']?></textarea>
    </div>

    <button type="submit" class="btn btn-primary">Submit</button>
</form>










</div>







<script>
    var app = new Vue({
        el:"#app",
        data:{
            msg:"Hello world",
            style_new_post:false,
        },
        methods:{
            toggle_new_post(){
                this.style_new_post = !this.style_new_post;
            },
        }
    })
</script>
